package eric;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 启动类型
 *
 * @author Eric Wu
 * @create 2019-05-09
 * @since 1.8
 */
@SpringBootApplication
@EnableEurekaServer
public class Application {

    public static void main(String[] args){
        SpringApplication.run(Application.class,args);
    }

    @RequestMapping(value = "test",method = RequestMethod.GET)
    public String test(){
        return "{\"test\":\"jdfksd;fasdf\"}";
    }
}
